import re

s = "python hhhh"
result = re.match("python", s)
print(result)


s1 = "2python hhhh python"
result1 = re.match("python", s1)
print(result1)

#全局
s2 = "2python hhhh python"
result2 = re.search("python", s2)
print(result2)

#全局
s3 = "2python hhhh python"
result3 = re.findall("python", s3)
print(result3)